package com.edu.product.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    private Long id;
    private BigDecimal price;
    private String productName;
    private int num;
    // 添加部分参数构造函数
    public Product(Long id, BigDecimal price, String productName) {
        this.id = id;
        this.price = price;
        this.productName = productName;
    }
}
